package com.threeox.commonlibrary.entity.engine.verify;

import com.threeox.commonlibrary.entity.base.BaseObj;
import com.threeox.utillibrary.util.res.StringHelper;

/**
 *
 * @ClassName: VerifyMsg
 *
 * @Description: TODO(参数校验的对象)
 *
 * @author 赵屈犇
 *
 * @date 创建时间: 2017/7/4 15:00
 *
 * @version 1.0
 *
 */
public class VerifyMsg extends BaseObj {

    // 校验的参数Key值
    private String verifyCode;
    // 校验的参数名称
    private String verifyName;
    // 参数是否校验为空
    private boolean isVerifyEmpty = false;
    // 参数为空的提示
    private String emptyHint;
    // 校验的正则表达式
    private String regularExp;
    // 正则表达式的提示
    private String regularExpHint;

    public void initData(StringHelper stringHelper) {
        this.verifyCode = stringHelper.getStringText(verifyCode);
        this.verifyName = stringHelper.getStringText(verifyName);
        this.emptyHint = stringHelper.getStringText(emptyHint);
        this.regularExp = stringHelper.getStringText(regularExp);
        this.regularExpHint = stringHelper.getStringText(regularExpHint);
    }

    public String getVerifyName() {
        return verifyName;
    }

    public void setVerifyName(String verifyName) {
        this.verifyName = verifyName;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public boolean isVerifyEmpty() {
        return isVerifyEmpty;
    }

    public void setIsVerifyEmpty(Boolean verifyEmpty) {
        isVerifyEmpty = verifyEmpty;
    }

    public String getEmptyHint() {
        return emptyHint;
    }

    public void setEmptyHint(String emptyHint) {
        this.emptyHint = emptyHint;
    }

    public String getRegularExp() {
        return regularExp;
    }

    public void setRegularExp(String regularExp) {
        this.regularExp = regularExp;
    }

    public String getRegularExpHint() {
        return regularExpHint;
    }

    public void setRegularExpHint(String regularExpHint) {
        this.regularExpHint = regularExpHint;
    }
}
